package com.artfighting.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.artfighting.model.embed.ELong;

@Entity
@Table(name = "tblsections")
public class Section extends ELong {
	
	@Column(name = "Content", columnDefinition="TEXT")
	private String content;
	
	@Column(name = "Ordinal")
	private Integer ordinal;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "DocumentID")
	private Document document;

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getOrdinal() {
		return ordinal;
	}

	public void setOrdinal(Integer ordinal) {
		this.ordinal = ordinal;
	}

	public Document getDocument() {
		return document;
	}

	public void setDocument(Document document) {
		this.document = document;
	}
	
}
